System Requirements:
Windows 10 22H2
Python
Code tested on Python 3.11.2

Installation:
https://www.python.org/downloads/

To install the required packages, open command prompt and use the following commands:
pip install pandas
pip install matplotlib
pip install scikit-learn
pip install scipy

Keep all Python code in the same folder.

Install time may vary based on internet connection speed.

Instructions:
Demo Data Included = Ethanol_Drinking_Sample_Data.csv
1.) Create folders called "input_folder" and "output_folder" in the same path with the Python code.
2.) Update the "input_folder", "output_folder", and "udf_path" variables to the same path with the Python code and save.
3.) Organize a .csv input file as follows:
	Row 1 = column titles (Time (s), DF/F0, Start, End)
	Column 1 = time stamps for photometry recording.
	Column 2 = DF/F0 of photometry signal.
	Column 3 = start time stamps for events.
	Column 4 = end time stamps for events.
4.) Place .csv input files into the input_folder.
5.) Double-click ethanol_drinking_wrap.py or type ethanol_drinking_wrap.py into command prompt and press enter to run.

Output:
The output_folder will contain a .csv file of the main quantification output, graphs of DF/F0 traces for all events with corresponding .csv files, and graphs of averaged event traces with corresponding .csv files.
Runtime is approximately 4.26 seconds for 1 file but may vary based on number of events and hardware.